-- GENERATED SPELL FOR [Crushridge Plunderer] --


function spell0_2416(pUnit, Event) --@Bomb,n/a--
pUnit:FullCastSpellOnTarget(9143,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2416', 2000, 1)
end

function spell1_2416(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2416', 556, 1)
end

function Sorts_2416(pUnit, Event)
local choix_sorts_2416 = math.random(0, 1)
if choix_sorts_2416 == 0 then
pUnit:RegisterEvent('spell0_2416', 1, 1)
end
if choix_sorts_2416 == 1 then
pUnit:RegisterEvent('spell1_2416', 1, 1)
end
end

function mob2416_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2416', math.random(1500, 3000), 1)
end

function mob2416_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2416_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2416_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2416, 1, 'mob2416_Action')
RegisterUnitEvent(2416, 2, 'mob2416_Leave')
RegisterUnitEvent(2416, 3, 'mob2416_Kill')
RegisterUnitEvent(2416, 4, 'mob2416_Die')
